package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户和社区关联对象 sys_user_comm
 * 
 * @author ruoyi
 * @date 2021-08-29
 */
public class SysUserComm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户 */
    @Excel(name = "用户")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 社区 */
    @Excel(name = "社区")
    private Integer communityId;

    /** 社区名称 */
    @Excel(name = "社区")
    private String communityName;

    /** 申请的部门或房间 */
    @Excel(name = "申请的部门或房间")
    private Long deptId;

    /** 申请的部门或房间名称 */
    @Excel(name = "申请的部门或房间")
    private String deptName;

    /** 申请的角色 */
    @Excel(name = "申请的角色")
    private String roleIds;

    /** 申请的岗位 */
    @Excel(name = "申请的岗位")
    private String postIds;

    /** 0：申请中，1：通过，2：拒绝 */
    @Excel(name = "0：申请中，1：通过，2：拒绝")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public SysUserComm() {
    }

    public SysUserComm(Long userId, Integer communityId, String status) {
        this.userId = userId;
        this.communityId = communityId;
        this.status = status;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommunityId(Integer communityId) 
    {
        this.communityId = communityId;
    }

    public Integer getCommunityId() 
    {
        return communityId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

    public void setPostIds(String postIds)
    {
        this.postIds = postIds;
    }

    public String getPostIds() 
    {
        return postIds;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("communityId", getCommunityId())
            .append("deptId", getDeptId())
            .append("roleIds", getRoleIds())
            .append("postIds", getPostIds())
            .append("status", getStatus())
            .append("remarks", getRemarks())
            .toString();
    }
}
